import service from '@/utils/request'

// @Tags ProjectManagement
// @Summary 创建项目管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectManagement true "创建项目管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /projectManagement/createProjectManagement [post]
export const createProjectManagement = (data) => {
  return service({
    url: '/projectManagement/createProjectManagement',
    method: 'post',
    data
  })
}

// @Tags ProjectManagement
// @Summary 删除项目管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectManagement true "删除项目管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectManagement/deleteProjectManagement [delete]
export const deleteProjectManagement = (data) => {
  return service({
    url: '/projectManagement/deleteProjectManagement',
    method: 'delete',
    data
  })
}

// @Tags ProjectManagement
// @Summary 批量删除项目管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除项目管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectManagement/deleteProjectManagement [delete]
export const deleteProjectManagementByIds = (data) => {
  return service({
    url: '/projectManagement/deleteProjectManagementByIds',
    method: 'delete',
    data
  })
}

// @Tags ProjectManagement
// @Summary 更新项目管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectManagement true "更新项目管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /projectManagement/updateProjectManagement [put]
export const updateProjectManagement = (data) => {
  return service({
    url: '/projectManagement/updateProjectManagement',
    method: 'put',
    data
  })
}

// @Tags ProjectManagement
// @Summary 用id查询项目管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProjectManagement true "用id查询项目管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /projectManagement/findProjectManagement [get]
export const findProjectManagement = (params) => {
  return service({
    url: '/projectManagement/findProjectManagement',
    method: 'get',
    params
  })
}

// @Tags ProjectManagement
// @Summary 分页获取项目管理列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取项目管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /projectManagement/getProjectManagementList [get]
export const getProjectManagementList = (params) => {
  return service({
    url: '/projectManagement/getProjectManagementList',
    method: 'get',
    params
  })
}
